package com.caizi.socket.imagetool;

public class Download implements Runnable {

    private String httpUrl;
    private String productId;

    public Download(String httpUrl, String productId) {
        this.httpUrl = httpUrl;
        this.productId = productId;
    }

    public void run() {
        try {
            ImageOper.downloadImage(httpUrl, productId);
        } catch (Exception e) {
            System.out.println(e.getMessage());
        }
    }

}
